package com.devil.springsource;

import com.devil.springsource.entity.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringSourceMain {

	public static void main(String[] args) {

		ApplicationContext applicationContext =
				new ClassPathXmlApplicationContext("classpath:bean.xml");

		Person person = applicationContext.getBean("person", Person.class);

		System.out.println(person);
	}
}
